import base from '@/api/baseurl';
import request from '@/utils/request'

export function fetchListcurrency(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/currency/findcurrency',
    method: 'get',
    params: query
  })
}
export function fetchListuserlp(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/currency/findcurrencyuserlp',
    method: 'get',
    params: query
  })
}
//单行删除
export function deleteCurrency(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/currency/deletecurrency',
    method: 'get',
    params: query
  })
}



export function addCurrency(data) {
  return request({
    baseURL:base.appBaseApi,
    url: '/currency/addcurrency',
    method: 'post',
    data
  })
}

export function updateCurrency(data) {
  return request({
    baseURL:base.appBaseApi,
    url: '/currency/updatecurrency',
    method: 'post',
    data
  })
}
  export function batchDeleteCurrency(data) {
    return request({
      baseURL:base.appBaseApi,
      url: '/currency/batchdeletecurrency',
      method: 'post',
      data
    })
  }
